//
//  NovelModel.m
//  数据库的使用
//
//  Created by Qiaofeng on 15/5/11.
//  Copyright (c) 2015年 Qiaofeng. All rights reserved.
//

#import "NovelModel.h"

@implementation NovelModel

- (void)dealloc
{
//    albumId
//    categoryId
//    caregoryName
//    title
//    uid
//    nickname
  
    [super dealloc];
}

- (instancetype)initNovelModelWithAlbumId:(NSInteger)albumId categoryId:(NSInteger)categoryId categoryName:(NSString *)categoryName title:(NSString *)title uid:(NSInteger)uid nickname:(NSString *)nickname coverLarge:(NSString *)coverLarge playKind:(NSString *)playKind loginName:(NSString *)loginName albumIdMin:(NSInteger)albumIdMin
{
    self = [super init];
    if (self) {
        self.albumId = albumId;
        self.categoryId = categoryId;
        self.categoryName = categoryName;
        self.title = title;
        self.uid = uid;
        self.nickname = nickname;
        self.coverLarge = coverLarge;
        self.playKind = playKind;
        self.loginName = loginName;
        self.albumIdMin = albumIdMin;
    }
    return self;
}
+ (NovelModel *)novelModelWithAlbumId:(NSInteger)albumId categoryId:(NSInteger)categoryId categoryName:(NSString *)categoryName title:(NSString *)title uid:(NSInteger)uid nickname:(NSString *)nickname coverLarge:(NSString *)coverLarge playKind:(NSString *)playKind loginName:(NSString *)loginName albumIdMin:(NSInteger)albumIdMin{
    NovelModel *novelModel = [[NovelModel alloc]initNovelModelWithAlbumId:albumId categoryId:categoryId categoryName:categoryName title:title uid:uid nickname:nickname coverLarge:coverLarge playKind:playKind loginName:loginName albumIdMin:albumIdMin];
    return novelModel;
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    NSLog(@"key = %@",key);
}
@end
